//
//  XRmenuPopOverView.m
//  XRmenu
//
//  Created by Gao Yan on 11-11-23.
//  Copyright 2011年 foxhis. All rights reserved.
//

#import "XRmenuPopOverView.h"

@implementation XRmenuPopOverView

-(id) initWithConfig:(NSDictionary *)cfg
{
	self = [super initWithConfig:cfg];
	if (self) {
		// 增加半透明黑色背景
		UIImageView *bg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];
		[bg setBackgroundColor:[UIColor blackColor]];
		[bg setAlpha:0.5];
		[self insertSubview:bg atIndex:0];
		[bg release];
		
		self.exclusiveTouch = YES;
		self.clipsToBounds = NO;
		[self add1fingerTap];
	}
	return self;
}

@end
